﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SearchPage.aspx.cs" Inherits="SearchPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Avanto Search</title>
    <%--    <!-- Load Popup JavaScript files -->
    <script type='text/javascript' src='js/jquery.js'></script>
    <script type='text/javascript' src='js/Plugins/jquery.simplemodal.js'></script>
    <script type='text/javascript' src='js/Plugins/osx.js'></script>
    <!-- End of Loading Popup JavaScript files -->
    <!-- OSX Style CSS files -->
    <link type='text/css' href='css/osx.css' rel='stylesheet' media='screen' />--%>
    <link rel="icon" href="#" type="image/x-icon">
    <link rel="shortcut icon" href="#" type="image/x-icon">
    <script src="avantoClassic/js/ga.js" async="" type="text/javascript"></script>
    <script src="avantoClassic/js/ga.js" async="" type="text/javascript"></script>
    <script type="text/javascript">

    </script>
    <link rel="stylesheet" type="text/css" href="avantoClassic/css/2444a6c75c026683184e1ebf7a3c4941.css"
        media="all" />
    <link rel="stylesheet" type="text/css" href="avantoClassic/css/b4ecdb486a484ef797e5156a48d6fbfc.css"
        media="print" />
    <link rel="stylesheet" type="text/css" media="screen" href="avantoClassic/css/stylish.css" />
    <link href="avantoClassic/css/last.css" rel="stylesheet" type='text/css' />
    <script type="text/javascript" src="avantoClassic/js/prototype.js"></script>
    <script type="text/javascript" src="avantoClassic/js/validation.js"></script>
    <script type="text/javascript" src="avantoClassic/js/builder.js"></script>
    <script type="text/javascript" src="avantoClassic/js/effects.js"></script>
    <script type="text/javascript" src="avantoClassic/js/dragdrop.js"></script>
    <script type="text/javascript" src="avantoClassic/js/controls.js"></script>
    <script type="text/javascript" src="avantoClassic/js/slider_002.js"></script>
    <script type="text/javascript" src="avantoClassic/js/form.js"></script>
    <script type="text/javascript" src="avantoClassic/js/menu.js"></script>
    <script type="text/javascript" src="avantoClassic/js/translate.js"></script>
    <script type="text/javascript" src="avantoClassic/js/jquery-1.js"></script>
    <script type="text/javascript" src="avantoClassic/js/cycle-fade-effect.js"></script>
    <script type="text/javascript" src="avantoClassic/js/slider.js"></script>
    <link href="avantoClassic/css/prism.css" rel="stylesheet">
    <link href="avantoClassic/css/menu.css" rel="stylesheet" type="text/css" />
    <%--Following scripts and css are for search functionality--%>
    <script src="JS/Plugins/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="JS/Plugins/json2-min.js" type="text/javascript"></script>
    <script src="JS/searchInventory.js" type="text/javascript"></script>
    <script src="JS/bootstrap.js" type="text/javascript"></script>
    <script src="JS/bootstrap.min.js" type="text/javascript"></script>
    <link href="CSS/bootstrap-responsive.css" rel="stylesheet" type="text/css" />
    <link href="CSS/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
    <link href="CSS/bootstrap.css" rel="stylesheet" type="text/css" />
    <link href="CSS/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
//<![CDATA[
        optionalZipCountries = [];
//]]>
    </script>
    <script type="text/javascript">        var Translator = new Translate([]);</script>
    <script src="avantoClassic/js/SpryMenuBar.js" type="text/javascript"></script>
    <link href="avantoClassic/css/SpryMenuBarVertical.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">        var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-6063824-5']); _gaq.push(['_trackPageview']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();  </script>
    <script src="avantoClassic/js/gt.js" type="text/javascript"></script>
    <%--    <link rel="stylesheet" href="css/multizoom.css" type="text/css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
    <script type="text/javascript" src="js/multizoom.js"></script>--%>
    <style type="text/css">
        #wrap
        {
            width: 100%;
            margin-left:200px;
        }
                
        .right_col
        {
            float: left;
            width: 100px;
            padding: 10px;
        }
        .gridWrap
        {
            width: 100%;
            float: left;
            height: 150px; /*-----------*/
            background-image: url('IMAGE/white_space.png');
            z-index: 1;
            border: 0px solid black;
        }
        .gridImage
        {
            width: 20%; /*----------**/
            position: relative;
            margin-left: 10px;
            margin-top: 20px;
            height: 80px;
            z-index: 2;
            float: left;
        }
        .gridProductInformation
        {
            position: relative;
            width: 55%;
            float: left;
            z-index: 2;
            margin-left: 10px;
            margin-top: 20px;
            font-size: medium;
            font-family: @Arial Unicode MS;
        }
        .gridLink
        {
            position: relative;
            width: 20%;
            float: left;
            font-size: medium;
            margin-left: 10px;
            margin-top: 1px;
            z-index: 4;
            font-family: @Arial Unicode MS;
        }
        
        a:link
        {
            text-decoration: none;
        }
        #Div1
        {
            overflow: auto;
        }
        
        .divrow
        {
            margin-top: 15px;
            margin-left: 20px;
            margin-bottom: 10px;
        }
        .divlbl
        {
            float: left;
            width: 150px;
            border-color: #404040;
            border-width: 1px;
        }
        
        fieldset
        {
            overflow: hidden;
        }
        .some-class
        {
            float: left;
            clear: none;
        }
        label
        {
            float: left;
            clear: none;
            display: block;
            padding: 2px 1em 0 0;
        }
        input[type=radio], input.radio
        {
            float: left;
            clear: none;
            margin: 2px 0 0 2px;
        }
        
        /* Let's get this party started */::-webkit-scrollbar
        {
            width: 12px;
        }
        /* Track */::-webkit-scrollbar-track
        {
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
            -webkit-border-radius: 10px;
            border-radius: 10px;
        }
        /* Handle */::-webkit-scrollbar-thumb
        {
            -webkit-border-radius: 10px;
            border-radius: 10px;
            background: #F0F0F0;
            -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
        }
        ::-webkit-scrollbar-thumb:window-inactive
        {
            background: rgba(255,0,0,0.4);
        }
        
        .product-name
        {
            padding-bottom: 3px;
            padding-top: 2px;
        }
    </style>
    <%-- <script src="JS/jquery.cookie.js" type="text/javascript"></script>--%>

    <link href="CSS/largeDropdownStyle.css" rel="stylesheet" type="text/css" />


    <script type="text/javascript">


        function deleteAllCookies() {
            var cookies = document.cookie.split(";");

            for (var i = 0; i < cookies.length; i++) {
                var cookie = cookies[i];
                var eqPos = cookie.indexOf("=");
                var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
                document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
            }
        }

        function clearAndRedirect() {
            deleteAllCookies();
            window.location = "Home.aspx";
        }
   
    </script>
    <script type="text/javascript">

        function setCookie(c_name, value, exdays) {
            var exdate = new Date();
            exdate.setDate(exdate.getDate() + exdays);
            var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
            document.cookie = c_name + "=" + escape(value);
        }
        function getCookie(c_name) {
            var c_value = document.cookie;
            var c_start = c_value.indexOf(" " + c_name + "=");
            if (c_start == -1) {
                c_start = c_value.indexOf(c_name + "=");
            }
            if (c_start == -1) {
                c_value = null;
            }
            else {
                c_start = c_value.indexOf("=", c_start) + 1;
                var c_end = c_value.indexOf(";", c_start);
                if (c_end == -1) {
                    c_end = c_value.length;
                }
                c_value = unescape(c_value.substring(c_start, c_end));
            }
            return c_value;
        }

        var jData = {};



        $(document).ready(function () {



            var content = getCookie('cartCookie');
            if (getCookie('count') != "" && getCookie('count') != null) {
                count = getCookie('count');

                $('#addeditems').html(count);
            }
            if (getCookie('total') != "" && getCookie('total') != null) {

                $('#total').val(parseFloat(getCookie('total')));
            }

            $('#cartView').append(content);


            $.ajax({
                type: "POST",
                url: "ProductService.svc/latestProducts",
                data: JSON.stringify(jData),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (json) {

                    var data = JSON.parse(json.d);

                    for (start = 0; start < data.binding.length; start++) {
                        var jsonProduct = "{Product:'" + data.binding[start].ProductID + "',Brand:'" + data.binding[start].Brand + "',Model:'" + data.binding[start].Model + "',Price:'" + data.binding[start].Price + "',File:'" + data.binding[start].Filepath + "'}"
                        var imgPath = '<img width="125px" height="115px" src="' + data.binding[start].Filepath + '"  />'
                        var link = '<a href="#" onclick=window.open("moreDetails.aspx?proid=' + data.binding[start].ProductID + '")>More Details</a>';
                        var addToCart = '<input class="btn btn-primary" type="submit" value="Add To Cart" onclick="return addOrderItem(' + jsonProduct + ')" />';

                        var brk = '<br>';
                        //return "<div> " + imgPath + " Brand Name : " + Details[0] + "  Model : " + Details[1] + " Price : " + Details[2] + "" + link + " </div>";

                        var newitem = '<div class="item"> <div class="product-image" > ' + imgPath + ' </div> <div class="product-name" > Product ID : '
                             + data.binding[start].ProductID + brk + ' </div> <div class="product-name"> Brand Name : '
                             + data.binding[start].Brand + brk + ' </div> <div class="product-name"> Model : '
                             + data.binding[start].Model + brk + ' </div> <div class="product-name"> Price : <span class="price"><span class="symbol">$</span>'
                             + data.binding[start].Price + brk + ' </span> </div>  <div class="product-name">' + addToCart + ' <div class="product-name">' + link + '<div> <div>   </div>';

                        $("#Div2").append(newitem);


                    }
                },
                failure: function (msg) {
                    alert(msg);
                },
                error: function (jqXHR, exception) {
                    if (jqXHR.status === 0) {
                        alert('Not connect.\n Verify Network.');
                    } else if (jqXHR.status == 404) {
                        alert('Requested page not found. [404]');
                    } else if (jqXHR.status == 500) {
                        alert('Internal Server Error [500].');
                    } else if (exception === 'parsererror') {
                        alert('Requested JSON parse failed.');
                    } else if (exception === 'timeout') {
                        alert('Time out error.');
                    } else if (exception === 'abort') {
                        alert('Ajax request aborted.');
                    } else {
                        alert('Uncaught Error.\n' + jqXHR.responseText);
                    }
                }
            });




            var param = getParameterByName('brand');
            var param2 = getParameterByName('product');
            var paramSearch = getParameterByName('search');

            if (param != null && param != "" && param2 != null && param2 != "") {

                // var jData = {};

                jData.Category = param2;
                jData.Brand = param;

                $.ajax({
                    type: "POST",
                    url: "ProductService.svc/searchProducts",
                    data: JSON.stringify(jData),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (json) {
                        var data = JSON.parse(json.d);

                        for (start = 0; start < data.binding.length; start++) {

                            var jsonProduct = "{Product:'" + data.binding[start].ProductID + "',Brand:'" + data.binding[start].Brand + "',Model:'" + data.binding[start].Model + "',Price:'" + data.binding[start].Price + "',File:'" + data.binding[start].Filepath + "'}"
                            var imgPath = '<img width="100%" height="100px" src="' + data.binding[start].Filepath + '"/>'
                            var link = '<a href="#" onclick=window.open("moreDetails.aspx?proid=' + data.binding[start].ProductID + '")>More Details</a>';
                            var addToCart = '<input class="btn btn-primary" type="submit" value="Add To Cart" onclick="return addOrderItem(' + jsonProduct + ')" />';

                            var brk = '<br>';
                            //return "<div> " + imgPath + " Brand Name : " + Details[0] + "  Model : " + Details[1] + " Price : " + Details[2] + "" + link + " </div>";

                            var newitem = '<div class="gridWrap"> <div class="gridImage" > ' + imgPath + ' </div> <div class="gridProductInformation" > Product ID : '
                             + data.binding[start].ProductID + brk + ' Brand Name : '
                             + data.binding[start].Brand + brk + ' Model : '
                             + data.binding[start].Model + brk + ' Price : <span class="price"> <span class="symbol">$</span>'
                             + data.binding[start].Price + brk + ' </span> </div>  <div class="gridLink">' + addToCart + ' <div class="moreDetails">' + link + '<div> <div>   </div>';
                            $("#Div1").append(newitem);


                        }
                    },
                    failure: function (msg) {
                        alert(msg);
                    },
                    error: function (jqXHR, exception) {
                        if (jqXHR.status === 0) {
                            alert('Not connect.\n Verify Network.');
                        } else if (jqXHR.status == 404) {
                            alert('Requested page not found. [404]');
                        } else if (jqXHR.status == 500) {
                            alert('No Results Found');
                        } else if (exception === 'parsererror') {
                            alert('Requested JSON parse failed.');
                        } else if (exception === 'timeout') {
                            alert('Time out error.');
                        } else if (exception === 'abort') {
                            alert('Ajax request aborted.');
                        } else {
                            alert('Uncaught Error.\n' + jqXHR.responseText);
                        }
                    }
                });

            }

            else if (paramSearch != null && paramSearch != "") {


                //var jData = {};

                jData.Brand = paramSearch;

                $.ajax({
                    type: "POST",
                    url: "ProductService.svc/searchProducts",
                    data: JSON.stringify(jData),
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (json) {
                        var data = JSON.parse(json.d);

                        for (start = 0; start < data.binding.length; start++) {
                            var jsonProduct = "{Product:'" + data.binding[start].ProductID + "',Brand:'" + data.binding[start].Brand + "',Model:'" + data.binding[start].Model + "',Price:'" + data.binding[start].Price + "',File:'" + data.binding[start].Filepath + "'}"
                            var imgPath = '<img width="100%" height="100px" src="' + data.binding[start].Filepath + '"  />'
                            var link = '<a href="#" onclick=window.open("moreDetails.aspx?proid=' + data.binding[start].ProductID + '")>More Details</a>';
                            var addToCart = '<input class="btn btn-primary" type="submit" value="Add To Cart" onclick="return addOrderItem(' + jsonProduct + ')" />';

                            var brk = '<br>';
                            //return "<div> " + imgPath + " Brand Name : " + Details[0] + "  Model : " + Details[1] + " Price : " + Details[2] + "" + link + " </div>";

                            var newitem = '<div class="gridWrap"> <div class="gridImage" > ' + imgPath + ' </div> <div class="gridProductInformation" > Product ID : '
                             + data.binding[start].ProductID + brk + ' Brand Name : '
                             + data.binding[start].Brand + brk + ' Model : '
                             + data.binding[start].Model + brk + ' Price : <span class="price"> <span class="symbol">$</span>'
                             + data.binding[start].Price + brk + ' </span> </div>  <div class="gridLink">' + addToCart + ' <div class="moreDetails">' + link + '<div> <div>   </div>'; $("#Div1").append(newitem);


                        }
                    },
                    failure: function (msg) {
                        alert(msg);
                    },
                    error: function (jqXHR, exception) {
                        if (jqXHR.status === 0) {
                            alert('Not connect.\n Verify Network.');
                        } else if (jqXHR.status == 404) {
                            alert('Requested page not found. [404]');
                        } else if (jqXHR.status == 500) {
                            alert('No Results Found');
                        } else if (exception === 'parsererror') {
                            alert('Requested JSON parse failed.');
                        } else if (exception === 'timeout') {
                            alert('Time out error.');
                        } else if (exception === 'abort') {
                            alert('Ajax request aborted.');
                        } else {
                            alert('Uncaught Error.\n' + jqXHR.responseText);
                        }
                    }
                });




            }
            //alert(param);
        });



        function getParameterByName(name) {
            name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
            var regexS = "[\\?&]" + name + "=([^&#]*)";
            var regex = new RegExp(regexS);
            var results = regex.exec(window.location.href);
            if (results == null)
                return "";
            else
                return decodeURIComponent(results[1].replace(/\+/g, " "));
        }


    </script>
    <script type="text/javascript">

        var count = 0;

        // var cartproduct = new Array();

        function addOrderItem(product) {

            count++;

            $('#addeditems').html(count);

            var item = JSON.stringify(product);
            //alert(item);

            //alert(cartproduct.valueOf());

            var detail = JSON.parse(item);
            $("#total").val(parseFloat($("#total").val()) + parseFloat(detail.Price));
            var imgPath = '<img width="100%" height="100px" src="' + detail.File + '"  />'
            var link = '<a href="#" onclick=window.open("moreDetails.aspx?proid=' + parseFloat(detail.Product) + '")>More Details</a>';
            var removeToCart = '<input class="btn btn-danger" type="submit" value="Remove Item" onclick="return removeOrderItem(' + detail.Product + ',' + detail.Price + ')" />';
            //var removeToCart = '<a href="#" onclick="return removeOrderItem(' + detail.Product + ',' + detail.Price + ')"><img src="images/removeitem.jpg" width="80" height="30"/></a>';

            var brk = '<br>';
            //return "<div> " + imgPath + " Brand Name : " + Details[0] + "  Model : " + Details[1] + " Price : " + Details[2] + "" + link + " </div>";

            var addeditem = '<div  id="order' + detail.Product + '"class="gridWrap"> <div class="gridImage" > ' + imgPath + ' </div> <div class="gridProductInformation" > Product ID : '
                             + detail.Product + brk + ' Brand Name : '
                             + detail.Brand + brk + ' Model : '
                             + detail.Model + brk + ' Price : <span class="price"> <span class="symbol">$</span>'
                             + detail.Price + brk + '</span> </div>  <div class="gridLink">' + removeToCart + '  <div class="moreDetails">' + link + ' <div>   </div>';



            $("#cartView").append(addeditem);
            setCookie("cartCookie", $('#cartView').html(), 365);
            setCookie("count", count, 365);
            //alert($("#total").val());
            setCookie("total", $("#total").val(), 365);



            return false;
        }


        function orderedItems() {

            var orderedlength = $("#cartView .gridWrap").length;
            var orderedProductsID = "";

            for (start = 0; start < orderedlength; start++) {
                orderedProductsID = orderedProductsID + $("#cartView .gridWrap")[start].id.toString().replace('order', '') + ",";
            }

            //alert(orderedProductsID.substring(0, orderedProductsID.length - 1));

            var custorder = orderedProductsID.substring(0, orderedProductsID.length - 1);

            var jData = {};
            jData.customerorder = custorder;
            jData.customername = $('#custname').val();
            jData.customermobile = $('#custmobile').val();
            jData.customeraddress = $('#custaddress').val();
            jData.customercity = $('#custcity').val();
            jData.customerstate = $('#custstate').val();

            $.ajax({
                type: "POST",
                url: "ProductService.svc/saveOrderInformation",
                data: JSON.stringify(jData),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (response) {
                    var Result = eval('(' + response.d + ')');
                    alert(Result["Message"]);
                    alert("Your Order ID is" + Result["Confirmation"] + " Please Make a note of it for further transactions,Your Product will be delivered within 5 working days");
                    // window.location = "NewDashboard.aspx";

                    clearAndRedirect();
                    closepopup();

                },
                failure: function (msg) {
                    alert(msg);
                },
                error: function (jqXHR, exception) {
                    if (jqXHR.status === 0) {
                        alert('Not connect.\n Verify Network.');
                    } else if (jqXHR.status == 404) {
                        alert('Requested page not found. [404]');
                    } else if (jqXHR.status == 500) {
                        alert('No Results Found');
                    } else if (exception === 'parsererror') {
                        alert('Requested JSON parse failed.');
                    } else if (exception === 'timeout') {
                        alert('Time out error.');
                    } else if (exception === 'abort') {
                        alert('Ajax request aborted.');
                    } else {
                        alert('Uncaught Error.\n' + jqXHR.responseText);
                    }
                }

            });

            return false;
        }

        function removeOrderItem(productid, price) {

            $("#total").val(parseFloat($("#total").val()) - parseFloat(price));


            $("#cartView #order" + productid).remove();
            $("#" + productid).remove();
            setCookie("cartCookie", $('#cartView').html(), 365);

            setCookie("total", $("#total").val(), 365);

            count--;
            setCookie("count", count, 365);
            $('#addeditems').html(count);


            return false;
        }


        function getUser() {

            var jData = {};
            jData.UserEmail = $('#email').val();


            $.ajax({
                type: "POST",
                url: "ProductService.svc/getCustomer",
                data: JSON.stringify(jData),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (response) {
                    var Result = eval('(' + response.d + ')');
                    $('#customername').html(Result["CustomerFirstname"]);
                    $('#customermobile').html(Result["CustomerMobile"]);
                    $('#customeraddress').html(Result["CustomerAddress1"]);
                    $('#customercity').html(Result["CustomerAddress2"]);
                    $('#customerstate').html(Result["CustomerState"]);



                },
                failure: function (msg) {
                    alert(msg);
                },
                error: function (jqXHR, exception) {
                    if (jqXHR.status === 0) {
                        alert('Not connect.\n Verify Network.');
                    } else if (jqXHR.status == 404) {
                        alert('Requested page not found. [404]');
                    } else if (jqXHR.status == 500) {
                        alert('No Results Found');
                    } else if (exception === 'parsererror') {
                        alert('Requested JSON parse failed.');
                    } else if (exception === 'timeout') {
                        alert('Time out error.');
                    } else if (exception === 'abort') {
                        alert('Ajax request aborted.');
                    } else {
                        alert('Uncaught Error.\n' + jqXHR.responseText);
                    }
                }

            });
            return false;
        }


        function memberOrderedItems() {



            var orderedlength = $("#cartView .gridWrap").length;
            var orderedProductsID = "";

            for (start = 0; start < orderedlength; start++) {
                orderedProductsID = orderedProductsID + $("#cartView .gridWrap")[start].id.toString().replace('order', '') + ",";
            }

            //alert(orderedProductsID.substring(0, orderedProductsID.length - 1));

            var custorder = orderedProductsID.substring(0, orderedProductsID.length - 1);

            var jData = {};
            jData.customerorder = custorder;
            jData.customername = $('#customername').html();
            jData.customermobile = $('#customermobile').html();
            jData.customeraddress = $('#customeraddress').html();
            jData.customercity = $('#customercity').html();
            jData.customerstate = $('#customerstate').html();

            $.ajax({
                type: "POST",
                url: "ProductService.svc/saveOrderInformation",
                data: JSON.stringify(jData),
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (response) {
                    var Result = eval('(' + response.d + ')');
                    alert(Result["Message"]);
                    alert("Your Order ID is" + Result["Confirmation"] + " Please Make a note of it for further transactions,Your Product will be delivered within 5 working days");
                    // window.location = "NewDashboard.aspx";
                    $("#cartView").html("");
                    clearAndRedirect();
                    closepopup();
                    // deleteCookie();
                    // window.location = "SearchPage.aspx";

                },
                failure: function (msg) {
                    alert(msg);
                },
                error: function (jqXHR, exception) {
                    if (jqXHR.status === 0) {
                        alert('Not connect.\n Verify Network.');
                    } else if (jqXHR.status == 404) {
                        alert('Requested page not found. [404]');
                    } else if (jqXHR.status == 500) {
                        alert('No Results Found');
                    } else if (exception === 'parsererror') {
                        alert('Requested JSON parse failed.');
                    } else if (exception === 'timeout') {
                        alert('Time out error.');
                    } else if (exception === 'abort') {
                        alert('Ajax request aborted.');
                    } else {
                        alert('Uncaught Error.\n' + jqXHR.responseText);
                    }
                }

            });

            return false;


        }

        function redirect() {

            if ($("#total").val() == 0) {
                alert('No item choosen for order...!');
            }
            else {

                memberOrderedItems();

            }

            return false;
        }

    </script>
    <script type="text/javascript">

        function closepopup() {

            modal.bind('reveal:close', function () {
                if (!locked) {
                    lockModal();
                    if (options.animation == "fadeAndPop") {
                        modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
                        modal.animate({
                            "top": $(document).scrollTop() - topOffset + 'px',
                            "opacity": 0
                        }, options.animationspeed / 2, function () {
                            modal.css({ 'top': topMeasure, 'opacity': 1, 'visibility': 'hidden' });
                            unlockModal();
                        });
                    }
                    if (options.animation == "fade") {
                        modalBG.delay(options.animationspeed).fadeOut(options.animationspeed);
                        modal.animate({
                            "opacity": 0
                        }, options.animationspeed, function () {
                            modal.css({ 'opacity': 1, 'visibility': 'hidden', 'top': topMeasure });
                            unlockModal();
                        });
                    }
                    if (options.animation == "none") {
                        modal.css({ 'visibility': 'hidden', 'top': topMeasure });
                        modalBG.css({ 'display': 'none' });
                    }
                }
                modal.unbind('reveal:close');
            });

        }
    
    </script>
    <link href="popup/12.css" rel="stylesheet" type="text/css" />
    <link href="popup/global.css" rel="stylesheet" type="text/css" />
    <script src="popup/jquery-1.js" type="text/javascript"></script>
    <script src="popup/jquery_003.js" type="text/javascript"></script>
</head>
<body class=" cms-index-index cms-home">
    <!-- modal content -->
    <div style="top: 100px; opacity: 1; visibility: hidden;" id="myModal" class="reveal-modal">
        <div>
            <div class="divrow">
                <div class="divlbl">
                    <label id="lblname">
                        Total</label>
                </div>
                <input type="text" id="total" disabled="disabled" value="0" />
            </div>
            <table id="cartView">
            </table>
            <input type="button" class="btn btn-primary" value="Order" onclick="$('#choice').show()" />
            <div id="choice" style="display: none; margin-top: 20px;">
                <fieldset>
                    <div class="some-class">
                        <input type="radio" class="" name="user" value="Registered" id="" onclick="$('#registered').show();$('#orderconfirm').hide();" />
                        <label for="y">
                            Already Registered</label>
                        <input type="radio" class="" style="margin-left: 20px;" name="user" value="New" id=""
                            onclick="$('#orderconfirm').show();$('#registered').hide();" />
                        <label for="z">
                            New User</label>
                    </div>
                </fieldset>
                <%--  <form action="">
                <input type="radio" name="user" value="Registered" onclick="$('#registered').show();$('#orderconfirm').hide();">Already Registered<br>
                <input type="radio" name="user" value="New" style="float: left" onclick="$('#orderconfirm').show();$('#registered').hide();">New User
                </form>--%>
            </div>
            <div id="registered" style="display: none">
                <div class="divrow">
                    <div class="divlbl">
                        <label id="lblname">
                            Email</label>
                    </div>
                    <input class="textfield" type="text" id="email" />
                    <input type="button" class="btn btn-primary" value="Proceed" onclick="return getUser();" />
                </div>
                <div id="customerDetails">

                   <%-- <div class="divrow">
                        <div class="divlbl">
                            <label id="lblname">
                                Customer Name</label>
                        </div>
                        <span id="customername"></span>
                        <br />
                    </div>
                    <div class="divrow">
                        <div class="divlbl">
                            <label id="lblname">
                                Customer Mobile</label>
                        </div>
                        <span id="customermobile"></span>
                        <br />
                    </div>
                    <div class="divrow">
                        <div class="divlbl">
                            <label id="lblname">
                                Customer Address</label>
                        </div>
                        <span id="customeraddress"></span>
                        <br />
                    </div>
                    <div class="divrow">
                        <div class="divlbl">
                            <label id="lblname">
                                Customer City</label>
                        </div>
                        <span id="customercity"></span>
                        <br />
                    </div>
                    <div class="divrow">
                        <div class="divlbl">
                            <label id="lblname">
                                Customer State</label>
                        </div>
                        
                        <span id="customerstate"></span>
                        <br />
                    </div>
               --%> 
               
               </div>
                <input type="button" class="btn btn-success" value="Confirm Order" style="margin-bottom: 20px;"
                    onclick="return redirect()" class="simplemodal-close" />
            </div>
            <div id="orderconfirm" style="display: none">
                <div class="divrow">
                    <div class="divlbl">
                        <label id="lblname">
                            Customer Name</label>
                    </div>
                    <input class="textfield" type="text" id="custname" />
                </div>
                <div class="divrow">
                    <div class="divlbl">
                        <label id="lblname">
                            Customer Mobile</label>
                    </div>
                    <input class="textfield" type="text" id="custmobile" />
                </div>
                <div class="divrow">
                    <div class="divlbl">
                        <label id="lblname">
                            Customer Address</label>
                    </div>
                    <input class="textfield" type="text" id="custaddress" />
                </div>
                <div class="divrow">
                    <div class="divlbl">
                        <label id="lblname">
                            Customer City</label>
                    </div>
                    <input class="textfield" type="text" id="custcity" />
                </div>
                <div class="divrow">
                    <div class="divlbl">
                        <label id="lblname">
                            Customer State</label>
                    </div>
                    <input class="textfield" type="text" id="custstate" />
                </div>
                <input type="button" class="btn btn-success" value="Confirm Order" style="margin-bottom: 20px;"
                    onclick="return orderedItems()" class="simplemodal-close" />
            </div>
            <%--   <div id="cartPage" class="scroll" style="text-align: center;">
                                </div>
                <input type="button" id="LoadData" value="Show Cart" />--%>
        </div>
        <a class="close-reveal-modal">×</a>
    </div>
    <div class="wrapper">
        <noscript>
            <div class="noscript">
                <div class="noscript-inner">
                    <p>
                        <strong>We detected that your JavaScript seem to be disabled.</strong></p>
                    <p>
                        You must have JavaScript enabled in your browser to utilize the functionality of
                        this website.</p>
                </div>
            </div>
        </noscript>
        <div class="page">
            <div class="header-container">
                <div class="header">
                    <h2 class="logo">
                        <strong>Premium Magento Template</strong><a href="Home.aspx" title="Avanto Solutions Product"
                            class="logo"><img src="avantoClassic/images/logo.gif" id="image2" /></a></h2>
                    <div class="quick-access">
                        <form id="search_mini_form" action="#" method="get">
                        <div class="form-search">
                            <label for="search">
                                Search:</label>
                            <input id="searchbar" name="q" placeholder="Search entire store here..." class="input-text"
                                type="text" />
                            <button type="submit" title="Search" class="button" onclick="return searchItem()">
                                <span><span>Search</span></span></button>
                            <div style="display: none;" id="search_autocomplete" class="search-autocomplete">
                            </div>
                            <script type="text/javascript">
        //<![CDATA[
                                var searchForm = new Varien.searchForm('search_mini_form', 'search', 'Search entire store here...');
                                searchForm.initAutocomplete('#', 'search_autocomplete');
        //]]>
                            </script>
                        </div>
                        </form>
                        <p class="welcome-msg">
                        </p>
                        <ul class="links">
                            <li class="first"><a href="CustomerLogin.aspx" title="My Account">Login/Register</a></li>
                            <%--<li><a href="Search.aspx" title="My Wishlist" class="top-link-wishlist">Search Items</a></li>--%>
                            <%--<li><a href="#" title="My Shopping Cart" class='osx'>View Cart</a></li>--%>
                            <li>
                                <div class="column-row" style="padding-left: 25px;">
                                    <a data-reveal-id="myModal" href="" style="">
                                        <img src="images/viewcart.gif" width="" height="" title="View Cart" /></a>
                                </div>
                            </li>
                            <!--<li><a href="#" title="My Cart (1 item)" class="top-link-cart">My Cart <span></span></a></li>-->
                            <!--<li><a href="#" title="Checkout" class="top-link-checkout">Checkout</a></li>-->
                            <!--<li class=" last"><a href="#" title="Log In">Log In</a></li>-->
                        </ul>
                        <div class="row">
                            <div class="span3">
                                <select class="curry-ddm curry-5 ">
                                    <option selected="selected" value="USD" data-rate="1">USD</option>
                                    <option value="INR" data-rate="58.52">INR</option>
                                    <option value="LKR" data-rate="128.55">IKR</option>
                                </select>
                                <%--<div>Price: <span class="price">$200</span></div>--%>
                            </div>
                        </div>
                        <script src="js/jquery.js"></script>
                        <script src="js/curry.js"></script>
                        <script>

                            $(function () {

                                $('.curry-5').curry({
                                    base: 'USD',
                                    customCurrency: {

                                        'USD': 1,
                                        'INR': 58.52,
                                        'LKR': 128.55
                                    }
                                });

                            });
        
                        </script>
                    </div>
                </div>
            </div>
            <div class="nav-container">
                <div class="box">
                    <ul id="ldd_menu" class="ldd_menu">
                        <li><span style="width:-40px;"><a href="Home.aspx">Home</a></span><!-- Increases to 510px in width-->
                            <%--<div class="ldd_submenu">
                                <ul>
                                    <li class="ldd_heading">By Location</li>
                                    <li><a href="#">South America</a></li>
                                    <li><a href="#">Antartica</a></li>
                                    <li><a href="#">Africa</a></li>
                                    <li><a href="#">Asia and Australia</a></li>
                                    <li><a href="#">Europe</a></li>
                                </ul>
                                <ul>
                                    <li class="ldd_heading">By Category</li>
                                    <li><a href="#">Sun &amp; Beach</a></li>
                                    <li><a href="#">Adventure</a></li>
                                    <li><a href="#">Science &amp; Education</a></li>
                                    <li><a href="#">Extreme Sports</a></li>
                                    <li><a href="#">Relaxing</a></li>
                                    <li><a href="#">Spa and Wellness</a></li>
                                </ul>
                                <ul>
                                    <li class="ldd_heading">By Theme</li>
                                    <li><a href="#">Paradise Islands</a></li>
                                    <li><a href="#">Cruises &amp; Boat Trips</a></li>
                                    <li><a href="#">Wild Animals &amp; Safaris</a></li>
                                    <li><a href="#">Nature Pure</a></li>
                                    <li><a href="#">Helping others &amp; For Hope</a></li>
                                    <li><a href="#">Diving</a></li>
                                </ul>
                                <a class="ldd_subfoot" href="#">+ New Deals</a>
                            </div>--%>
                        </li>
                        <li><span>Laptops</span>
                            <div class="ldd_submenu">
                                <ul>
                                    <li class="ldd_heading">By Brand</li>
                                    <li><a href="SearchPage.aspx?brand=Acer&product=Laptop">Acer</a></li>
                                    <li><a href="SearchPage.aspx?brand=Dell&product=Laptop">Dell</a></li>
                                    <li><a href="SearchPage.aspx?brand=Lenovo&product=Laptop">Lenovo</a></li>
                                    <li><a href="SearchPage.aspx?brand=Sony&product=Laptop">Sony</a></li>
                                    
                                </ul>
                                <ul>
                                    <li class="ldd_heading">By Model</li>
                                    <li><a href="SearchPage.aspx?model=S Series 13&product=Laptop">S Series 13</a></li>
                                    <li><a href="SearchPage.aspx?model=T Series 11&product=Laptop">T Series 11</a></li>
                                
                                    <li><a href="#">Duo 11</a></li>
                                    
                                </ul>                                
                                <a class="ldd_subfoot" href="#">+ New Deals</a>
                            </div>
                        </li>
                        <li><span>Desktops</span>
                            <div class="ldd_submenu">
                                <ul>
                                    <li class="ldd_heading">By Brand</li>
                                    <li><a href="SearchPage.aspx?brand=Lenovo&product=Desktop">Lenovo</a></li>
                                </ul>
                                <ul>
                                    <li class="ldd_heading">By Model</li>
                                    
                                    <li><a href="SearchPage.aspx?model=S Series 13&product=Desktop">S Series 13</a></li>
                                </ul>
                                
                                <a class="ldd_subfoot" href="#">+ New Deals</a>
                            </div>
                        </li>
                    </ul>
                </div>

                <script type="text/javascript">
                    $(function () {
                        /**
                        * the menu
                        */
                        var $menu = $('#ldd_menu');

                        /**
                        * for each list element,
                        * we show the submenu when hovering and
                        * expand the span element (title) to 510px
                        */
                        $menu.children('li').each(function () {
                            var $this = $(this);
                            var $span = $this.children('span');
                            $span.data('width', $span.width());

                            $this.bind('mouseenter', function () {
                                $menu.find('.ldd_submenu').stop(true, true).hide();
                                $span.stop().animate({ 'width': '310px' }, 300, function () {
                                    $this.find('.ldd_submenu').slideDown(300);
                                });
                            }).bind('mouseleave', function () {
                                $this.find('.ldd_submenu').stop(true, true).hide();
                                $span.stop().animate({ 'width': $span.data('width') + 'px' }, 300);
                            });
                        });
                    });
                </script>

                <%--<ul id="menu">
                    <li><a href="Home.aspx" class="drop">Home</a><!-- Begin 4 columns Item -->
                    </li>
                    <!-- End 4 columns Item -->
                    <li><a href="#" class="drop">Laptops</a><!-- Begin 4 columns Item -->
                        <div class="dropdown_4columns">
                            <!-- Begin 4 columns container -->
                            <div class="col_4">
                                <!--<h2>This is a heading title</h2>-->
                            </div>
                            <div class="col_1">
                                <h3>
                                    Brand</h3>
                                <ul>
                                    <li><a href="SearchPage.aspx?brand=Acer&product=Laptop">Acer</a></li>
                                    <li><a href="SearchPage.aspx?brand=Dell&product=Laptop">Dell</a></li>
                                    <li><a href="SearchPage.aspx?brand=Lenovo&product=Laptop">Lenovo</a></li>
                                    <li><a href="SearchPage.aspx?brand=Sony&product=Laptop">Sony</a></li>
                                </ul>
                            </div>
                            <div class="col_1">
                                <h3>
                                    Model</h3>
                                <ul>
                                    <li><a href="SearchPage.aspx?model=S Series 13&product=Laptop">S Series 13</a></li>
                                    <li><a href="SearchPage.aspx?model=S Series 13&product=Laptop">T Series 11</a></li>
                                    <li><a href="SearchPage.aspx?model=Duo 11&product=Laptop">Duo 11</a></li>
                                </ul>
                            </div>
                        </div>
                        <!-- End 4 columns container -->
                    </li>
                    <!-- End 4 columns Item -->
                    <li><a href="#" class="drop">Desktops</a><!-- Begin 4 columns Item -->
                        <div class="dropdown_4columns">
                            <!-- Begin 4 columns container -->
                            <div class="col_4">
                                <!--<h2>This is a heading title</h2>-->
                            </div>
                            <div class="col_1">
                                <h3>
                                    Brand</h3>
                                <ul>
                                    <li><a href="SearchPage.aspx?brand=Lenovo&product=Desktop">Lenovo</a></li>
                                </ul>
                            </div>
                            <div class="col_1">
                                <h3>
                                    Model</h3>
                                <ul>
                                    <li><a href="SearchPage.aspx?model=S Series 13&product=Desktop">S Series 13</a></li>
                                </ul>
                            </div>
                        </div>
                        <!-- End 4 columns container -->
                    </li>
                    <!-- End 4 columns Item -->
                </ul>--%>
            </div>
            </div>
            
            <div class="home_page_header_block">
                <div id="SearchOption">
                    <div id="wrap">
                        <div class="right_col">
                            <select id="searchCategory" name="searchCategory" style="width: 100px;">
                                <option value="NULL">Category</option>
                                <option value="Desktop">Desktop</option>
                                <option value="Laptop">Laptop</option>
                            </select>
                        </div>
                        <div class="right_col">
                            <select id="searchBrand" name="searchBrand" style="width: 100px;">
                                <option value="NULL">Brand</option>
                                <option value="Asus">Asus</option>
                                <option value="Acer">Acer</option>
                                <option value="Apple">Apple</option>
                                <option value="Dell">Dell</option>
                                <option value="Lenovo">Lenovo</option>
                                <option value="Sony">Sony</option>
                                <option value="Toshiba">Toshiba</option>
                            </select>
                        </div>
                        <div class="right_col">
                            <select id="searchModel" name="searchModel" style="width: 100px;">
                                <option value="NULL">Model</option>
                                <option value="Duo 11">Duo 11</option>
                                <option value="S Series 13A">S Series 13A</option>
                                <option value="S Series 13">S Series 13</option>
                                <option value="S Series 15">S Series 15</option>
                                <option value="T Series 11">T Series 11</option>
                                <option value="T Series 13">T Series 13</option>
                                <option value="T Series 14">T Series 14</option>
                                <option value="ThinkPad">ThinkPad</option>
                                <option value="Vaio">Vaio </option>
                            </select>
                        </div>
                        <div class="right_col">
                            <select id="searchPriceFrom" name="searchPriceFrom" style="width: 100px;">
                                <option value="NULL">Price From</option>
                                <option value="400">400</option>
                                <option value="600">600</option>
                                <option value="800">800</option>
                                <option value="1000">1000</option>
                            </select>
                        </div>
                        <div class="right_col">
                            <select id="searchPriceTo" name="searchPriceTo" style="width: 100px;">
                                <option value="NULL">Price To</option>
                                <option value="600">600</option>
                                <option value="800">800</option>
                                <option value="1000">1000</option>
                                <option value="1200">1200</option>
                            </select>
                        </div>
                        <div class="right_col">
                            <input type="button" class="btn btn-primary" value="Search" onclick="return getProducts1()"
                                onmouseover="return priceexception()" />
                        </div>
                    </div>
                </div>
                <div class="main-container col3-layout">
                    <div class="main">
                        <div class="col-wrapper">
                            <div class="col-main">
                                <div class="std">
                                    <div>
                                        <div class="category-products">
                                            <div id="Div1" style="height: 600px; width: 100%; float: left;">
                                            </div>
                                            <div id="pjmap">
                                            </div>
                                            <script type="text/javascript">

                                                function successFunction(jsondata) {
                                                    var thegrid = jQuery("#jsonmap")[0];
                                                    thegrid.addJSONData(JSON.parse(jsondata.d));
                                                }


                                                //                                                function priceexception() {
                                                //                                                    if ($('#searchPriceFrom option:selected').val() != NULL && $('#searchPriceTo option:selected').val() != NULL)
                                                //                                                     {
                                                //                                                        if ($('#searchPriceFrom option:selected').val() == $('#searchPriceTo option:selected').val()) {
                                                //                                                            alert('Price ranges should not be same....!')

                                                //                                                        }
                                                //                                                    }
                                                //                                                }

                                                function getProducts1() {



                                                    var jData = {};
                                                    if ($('#searchCategory option:selected').val() != "NULL") {

                                                        jData.Category = $('#searchCategory option:selected').val();
                                                    }
                                                    if ($('#searchBrand option:selected').val() != "NULL") {
                                                        jData.Brand = $('#searchBrand option:selected').val();
                                                    }
                                                    if ($('#searchModel option:selected').val() != "NULL") {
                                                        jData.Model = $('#searchModel option:selected').val();
                                                    }
                                                    if ($('#searchPriceFrom option:selected').val() != "NULL") {

                                                        jData.PriceFrom = $('#searchPriceFrom option:selected').val();
                                                    }
                                                    if ($('#searchPriceTo option:selected').val() != "NULL") {
                                                        jData.PriceTo = $('#searchPriceTo option:selected').val();
                                                    }



                                                    $.ajax({
                                                        type: "POST",
                                                        url: "ProductService.svc/searchProducts",
                                                        data: JSON.stringify(jData),
                                                        contentType: "application/json; charset=utf-8",
                                                        dataType: "json",
                                                        success: function (json) {
                                                            var data = JSON.parse(json.d);
                                                            $("#Div1").html(""); //<img src="avantoClassic/images/logo.gif" id="image2" />
                                                            for (start = 0; start < data.binding.length; start++) {
                                                                var jsonProduct = "{Product:'" + data.binding[start].ProductID + "',Brand:'" + data.binding[start].Brand + "',Model:'" + data.binding[start].Model + "',Price:'" + data.binding[start].Price + "',File:'" + data.binding[start].Filepath + "'}"
                                                                var imgPath = '<img width="100%" height="100px" src="' + data.binding[start].Filepath + '"/>'
                                                                // var imgPath = '<a href="' + data.binding[start].Filepath + '" class="jqzoom" rel='gal1'  title="triumph" ><img src="' + data.binding[start].Filepath + '" width="100%" height="85px" title="triumph" style="border: 4px solid #666;"></a>'
                                                                var link = '<a href="#" onclick=window.open("moreDetails.aspx?proid=' + data.binding[start].ProductID + '",titlebar=0,toolbar=0,status=0,menubar=0)>More Details</a>';
                                                                var addToCart = '<input class="btn btn-primary" type="submit" value="Add To Cart" onclick="return addOrderItem(' + jsonProduct + ');" />';

                                                                var brk = '<br>';
                                                                //return "<div> " + imgPath + " Brand Name : " + Details[0] + "  Model : " + Details[1] + " Price : " + Details[2] + "" + link + " </div>";

                                                                var newitem = '<div class="gridWrap"> <div class="gridImage"> ' + imgPath + ' </div> <div class="gridProductInformation" > Product ID : '
                             + data.binding[start].ProductID + brk + ' Brand Name : '
                             + data.binding[start].Brand + brk + ' Model : '
                             + data.binding[start].Model + brk + ' Price :<span class="price"> <span class="symbol">$</span>'
                             + data.binding[start].Price + brk + '</span> </div>  <div class="gridLink">' + addToCart + ' <div class="moreDetails">' + link + '<div> <div>   </div>';




                                                                $("#Div1").append(newitem);



                                                            }

                                                        },
                                                        failure: function (msg) {
                                                            alert(msg);
                                                        },
                                                        error: function (jqXHR, exception) {
                                                            if (jqXHR.status === 0) {
                                                                alert('Not connect.\n Verify Network.');
                                                            } else if (jqXHR.status == 404) {
                                                                alert('Requested page not found. [404]');
                                                            } else if (jqXHR.status == 500) {
                                                                alert('No Results Found');
                                                            } else if (exception === 'parsererror') {
                                                                alert('Requested JSON parse failed.');
                                                            } else if (exception === 'timeout') {
                                                                alert('Time out error.');
                                                            } else if (exception === 'abort') {
                                                                alert('Ajax request aborted.');
                                                            } else {
                                                                alert('Uncaught Error.\n' + jqXHR.responseText);
                                                            }
                                                        }
                                                    });
                                                    return false;
                                                }

                                            </script>
                                            <%--This is old menu--%>
                                            <script type="text/javascript">                                                decorateGeneric($$('ul.products-grid'), ['odd', 'even', 'first', 'last'])</script>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-left sidebar">
                                <div class="block block-cart">
                                    <div class="block-title">
                                        <strong><span>My Cart</span></strong>
                                    </div>
                                    <div class="block-content">
                                        <div class="summary">
                                            <p class="amount">
                                                <a href="#"></a>
                                            </p>
                                            <p class="subtotal">
                                                <span class="label"></span><span class="price"></span>
                                            </p>
                                        </div>
                                        <p class="block-subtitle">
                                            Total added item(s) in Cart</p>
                                        <span id="addeditems">0</span><span> x items</span>
                                        <br />
                                        <br />
                                        <%--  <div class="actions">
                                            <button type="button" title="Checkout" class="button" onclick="">
                                                <span><span>Checkout</span></span></button>
                                        </div>--%>
                                        <%--<a class="large green button" data-reveal-id="myModal" style="width:33px;"><img src="popup/cart.png " />View Cart</a>--%>
                                        <a data-reveal-id="myModal" href="#">
                                            <img src="images/checkout.gif"></a>
                                        <%--<input type='button' src="images/checkout.gif" name='osx' value='Check Out' class='osx demo' /><img src="images/checkout.gif" />--%>
                                        <%--<ol id="cart-sidebar" class="mini-products-list">
                                            <li class="item last odd"><a href="#" title="Sony BRAVIA KDL32BX320 32-Inch 720p LCD HDTV, Black"
                                                class="product-image">
                                                <img src="avantoClassic/images/2338351YSN7GguqL.jpg" alt="Sony BRAVIA KDL32BX320 32-Inch 720p LCD HDTV, Black"
                                                    height="50" width="50"></a>
                                                <div class="product-details">
                                                    <a href="#" title="Remove This Item" onclick="return confirm('Are you sure you would like to remove this item from the shopping cart?');"
                                                        class="btn-remove">Remove This Item</a>
                                                    <p class="product-name">
                                                        <a href="#">Sony BRAVIA KDL32BX320 32-Inch 720p LCD HDTV, Black</a></p>
                                                    <strong>1</strong> x <span class="price">$335.99</span>
                                                </div>
                                            </li>
                                        </ol>--%>
                                        <script type="text/javascript">                                            decorateList('cart-sidebar', 'none-recursive')</script>
                                    </div>
                                </div>
                                <div style="width: 193px; overflow: hidden; border: 1px solid #D9DDE3;">
                                </div>
                                <div>
                                </div>
                            </div>
                        </div>
                        <div class="col-right sidebar">
                            <div class="block">
                                <div class="block-title">
                                    <strong><span>Latest products</span></strong></div>
                                <div class="block-content download">
                                    <div id="category-products">
                                        <div id="Div2">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--end download banner  -->
                            <!--magento hosting banner start -->
                            <div class="block">
                                <div class="block-title">
                                    <strong>Kaizen<span> Hosting</span></strong></div>
                                <div class="block-content download">
                                    <p>
                                    </p>
                                </div>
                            </div>
                            <!--end magento hosting banner  -->
                            <div class="block customer_service">
                                <div class="block-title">
                                    <strong><span>Customer service</span></strong></div>
                                <div class="block-content">
                                    <p class="phone">
                                        +91 9881234321</p>
                                    <p class="time">
                                        9.00-19.00 Mon-Fri</p>
                                </div>
                            </div>
                            <script type="text/javascript">
//<![CDATA[
                                function validatePollAnswerIsSelected() {
                                    var options = $$('input.poll_vote');
                                    for (i in options) {
                                        if (options[i].checked == true) {
                                            return true;
                                        }
                                    }
                                    return false;
                                }
//]]>
                            </script>
                            <%--<div class="block block-poll">
                                <div class="block-title">
                                    <strong><span>Community Poll</span></strong>
                                </div>
                                <form id="pollForm" action="#" method="post" onsubmit="return validatePollAnswerIsSelected();">
                                <div class="block-content">
                                    <p class="block-subtitle">
                                        What website do you have?</p>
                                    <!--<ul id="poll-answers">
                                <li class="odd">
                    <input name="vote" class="radio poll_vote" id="vote_9" value="9" type="radio">
                    <span class="label"><label for="vote_9">Home and Garden</label></span>
                </li>
                                <li class="even">
                    <input name="vote" class="radio poll_vote" id="vote_10" value="10" type="radio">
                    <span class="label"><label for="vote_10">Health</label></span>
                </li>
                                <li class="odd">
                    <input name="vote" class="radio poll_vote" id="vote_11" value="11" type="radio">
                    <span class="label"><label for="vote_11">Food </label></span>
                </li>
                                <li class="even">
                    <input name="vote" class="radio poll_vote" id="vote_12" value="12" type="radio">
                    <span class="label"><label for="vote_12">Vehicles</label></span>
                </li>
                                <li class="odd">
                    <input name="vote" class="radio poll_vote" id="vote_13" value="13" type="radio">
                    <span class="label"><label for="vote_13">Books / eBooks</label></span>
                </li>
                                <li class="even">
                    <input name="vote" class="radio poll_vote" id="vote_14" value="14" type="radio">
                    <span class="label"><label for="vote_14">Pets </label></span>
                </li>
                                <li class="last odd">
                    <input name="vote" class="radio poll_vote" id="vote_15" value="15" type="radio">
                    <span class="label"><label for="vote_15">Toys and Games</label></span>
                </li>
                            </ul>-->
                                    <script type="text/javascript">                                        decorateList('poll-answers');</script>
                                    <div class="actions">
                                        <button type="submit" title="Vote" class="button">
                                            <span><span>Vote</span></span></button>
                                    </div>
                                </div>
                                </form>
                            </div>--%>
                        </div>
                    </div>
                </div>
                <div class="footer-container">
                    <div class="footer">
                        <div>
                            <script type="text/javascript">// <![CDATA[
                                var MenuBar5 = new Spry.Widget.MenuBar("MenuBar5");
// ]]></script>
                        </div>
                        <ul class="links">
                            <li class="first"><a href="#" title="Site Map">Site Map</a></li>
                            <li><a href="#" title="Search Terms">Search Terms</a></li>
                            <li><a href="#" title="Advanced Search">Advanced Search</a></li>
                            <li class=" last"><a href="#" title="Contact Us">Contact Us</a></li>
                        </ul>
                        <address>
                            © 2013 Kaizen Technosoft
                        </address>
                    </div>
                </div>
            </div>
        </div>
        <script type="text/javascript">
<!--
            var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2");
            var MenuBar3 = new Spry.Widget.MenuBar("MenuBar3");
//-->
        </script>
</body>
<lcs_fe1deeea_db6d_44b8_83f0_34fc0f9d1052_dataexchangeelement action="" valueresult=""
    valuename=""></lcs_fe1deeea_db6d_44b8_83f0_34fc0f9d1052_dataexchangeelement>
</html>
